package stringProcessing;

public class stringrotation {
	public static void main(String[] args) {
		System.out.println(isRotation("App", "ppA"));
		System.out.println(isRotation("aaa--", "--aa"));
	}

	static boolean isRotation(String s1, String s2) {
		System.out.println((s1 + s1).indexOf(s2));
		return (s1.length() == s2.length()) && ((s1 + s1).indexOf(s2) != -1);
	}
}
